export const tableOption ={
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  labelWidth: 140,
  dialogWidth: "40",
  viewBtn: true,
  menuWidth: 150,
  viewBtnIcon: ' ',
  delBtnIcon: ' ',
  editBtnIcon: ' ',
  column: [
    {
      type: "month",
      label: "时间",
      prop: "recordTime",
      span: 24,
      required: true,
      search: true,
      rules: [
        {
          required: true,
          message: "时间不能为空"
        }
      ],
      format: 'yyyy年MM月', // 显示格式为年月，如2025年04月
      valueFormat: 'yyyy/MM', // 输出格式为年月，如2025-04，字符串类型
    },
    {
      type: "select",
      label: "车间",
      prop: "workShopName",
      span: 24,
      required: true,
      search: true,
      rules: [
        {
          required: true,
          message: "车间不能为空"
        }
      ],
      dicUrl: "/admin-api/o3-pfoc/workshop/getWorkshopList",
      dicMethod: "get",
      props: {
        label: "workshopName",
        value: "workshopName"
      },
      cascader: ['lineName'],
    },
    {
      type: "select",
      label: "产线",
      prop: "lineName",
      span: 24,
      /*required: true,*/
      search: true,
   /*   rules: [
        {
          required: true,
          message: "产线不能为空"
        }
      ],*/
      dicUrl: "/admin-api/o3-pfoc/realityproductlinemain/getLineListByWorkshopName?workshopName={{workShopName}}",
      dicMethod: "get",
      props: {
        label: "realityLineName",
        value: "realityLineName"
      },
    },
    {
      type: "input",
      label: "出货批次数量",
      prop: "shipmentBatch",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "出货批次不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "客诉批次数量",
      prop: "customerComplaintBatch",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "客诉批次不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "合格批次数量",
      prop: "qualifiedBatch",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "合格批次不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "客诉率",
      prop: "customerComplaintRate",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "客诉率不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "出货数量",
      prop: "shipmentQty",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "出货数量不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "客诉问题RMA数量",
      prop: "customerComplaintRmaQty",
      span: 24,
      width: 130,
      required: true,
      rules: [
        {
          required: true,
          message: "客诉问题RMA数量不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "退货PPM",
      prop: "returnPpm",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "退货PPM不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "NPR4",
      prop: "npr4",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "NPR4不能为空"
        }
      ],
    },
    {
      type: "input",
      label: "BRR",
      prop: "brr",
      span: 24,
      required: true,
      rules: [
        {
          required: true,
          message: "BRR不能为空"
        }
      ],
    }
  ]
}


